#pragma once

#include <SFML/Graphics.hpp>
#include <SFML/Vector2.hpp>
#include "Animation.h"

class animationManager
{
public:
	animationManager();
	~animationManager();

	void initialize(sf::RenderWindow* window);
	void add_animation(short animationType, sf::Vector2f position, float angle);
	void update();
	void cleanup();
	sf::Sprite* m_sprite;
	std::vector<Animation*> animationList;
	std::vector<sf::Sprite*> spriteList;
	std::vector<float> timeList;

private:
	sf::RenderWindow* m_renderWindow;
	Animation* m_animation;
	sf::Clock* m_clock;
	sf::Time timeSinceLastFrame;
	sf::Texture* type1;
	sf::Texture* type2;
	sf::Texture* type3;
	sf::Texture* type4;
	float m_angle;

};

